import java.util.Scanner;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/12/22 19:54
 * 换个格式输出整数
 * 算法：字符串
 */
public class _1006 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        StringBuilder sb = new StringBuilder();
        for (int i = n % 10; i >= 1; i--) sb.append(i);
        n /= 10;
        for (int i = 0; i < n % 10; i++) sb.append("S");
        n /= 10;
        for (int i = 0; i < n; i++) sb.append("B");
        sb.reverse();
        System.out.println(sb.toString());
    }

}
